package cn.dy.sbo.dao;

import java.util.List;

import org.springframework.stereotype.Component;
import org.springside.modules.orm.hibernate.HibernateDao;

import cn.dy.sbo.api.FlowHisDao;
import cn.dy.sbo.model.FlowHis;

@Component
public class FlowHisDaoHibernate  extends HibernateDao<FlowHis, Long> implements FlowHisDao{

	@Override
	public List<FlowHis> findByOrders(Long id) {
		return this.find(" from FlowHis where orders.id=? order by stepCode", id);
	}

}
